{config_load file=test.conf section="setup"}
{include file="header.html"}

<form name="form_data" method="POST" action="">
  <table class="data_edit">
  <tr>
    <td class="left_td">类型：</td>
    <td>
      <select name="type">
        <option value="0">花了</option>
        <option value="1">赚了</option>
      </select>
      <label><input type="radio" name="pay_type" value="1" title="支付方式 - 现金" checked="checked"/>现金</label>
      <label><input type="radio" name="pay_type" value="0" title="支付方式 - 信用卡"/>信用卡</label>
    </td>
  </tr>
  <tr>
    <td class="left_td">金额：</td>
    <td>
      <input type="text" name="money" value="" />元
    </td>
  </tr>
  <tr>
    <td class="left_td">标题：</td>
    <td>
      <input type="text" name="caption" value="" />
    </td>
  </tr>
  <tr>
    <td class="left_td">内容：</td>
    <td>
      <textarea name="content" rows="7" clos="35"></textarea>
    </td>
  </tr>
  <tr>
    <td class="left_td">图片：</td>
    <td>
      <label><input type="radio" name="pic_type" value="upload">上传</label>
      <label><input type="radio" name="pic_type" value="outline">外链</label><br/>
      <input type="text" name="picture" value="" />
    </td>
  </tr>
  <tr>
    <td class="left_td">时间：</td>
    <td>
      {html_select_date start_year=1998 end_year=2010}-{html_select_time use_24_hours=false}
    </td>
  </tr>
  <tr>
    <td class="left_td">是否隐私：</td>
    <td>
      <label><input type="radio" name="privacy" value="0">否</label>
      <label><input type="radio" name="privacy" value="1">是</label>
    </td>
  </tr>
  <tr>
    <td class="left_td">分类：</td>
    <td>
      <select name="category">
      {html_options values=$option_values selected=$option_selected output=$option_output}
      </select>
      注：选择收入和支出时的内容跟着变
    </td>
  </tr>
  <tr>
    <td colspan="2" class="submit_td">
      <input type="submit" value="保存" />
      <input type="button" value="返回" onclick="javascript: history.back();" />
    <td/>
  </tr>
  </table>
</form>

{include file="footer.html"}